

var name=[1,2,3,1,23,1,3,1,32,1,2]

function a(name){
    var user=[]
    for(var i=0;i<name.length;i++) {
if(user.indexOf(name[i])===-1){
    user.push(name[i])

}
}
    return console.log(user)
}
a(name)
